﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;

namespace CoreShop.Model
{
    public partial class sysroleinfo
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "roleId", IsPrimaryKey = true)]
        public long roleId { get; set; }

        /// <summary>
        /// 组件名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "roleName", IsNullable = true)]
        public string roleName { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "roleKey", IsNullable = true)]
        public string roleKey { get; set; }

        /// <summary>
        /// 最大优惠金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "maxDiscountAmount", IsNullable = true)]
        public decimal? maxDiscountAmount { get; set; } = 0;

        /// <summary>
        /// 最大折扣
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "discountRate", IsNullable = true)]
        public decimal? discountRate { get; set; } = 0;

        /// <summary>
        /// 角色状态（0正常 1停用）
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "status", IsNullable = true)]
        public Boolean? status { get; set; } = true;

        /// <summary>
        /// 是否删除
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "delFlag", IsNullable = true)]
        public int? delFlag { get; set; } = 0;

        /// <summary>
        /// 更新时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "updateTime", IsNullable = true)]
        public DateTime? updateTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "createTime", IsNullable = true)]
        public DateTime? createTime { get; set; }
    }
}
